package com.dingpeikeji.quickdeer.modules.rentproduct.entity;

import javax.validation.constraints.NotNull;
import java.util.Date;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 整车价格修改Entity
 * @author wuhao
 * @version 2016-08-08
 */
public class TRentprodModify extends DataEntity<TRentprodModify> {
	
	private static final long serialVersionUID = 1L;
	private Integer rentchgid;		// 主键
	private Integer forsaleid;
	private TCargotypeForsale	cargosale;
	private Double suitrtnprice;		// 套餐价格（零售往返价）
	private Double suitonewayprice;		// 套餐价格（零售单程价）
	private Double suitfreeprice;		// 套餐价格（零售顺风价）
	private Date efftdate;		// 生效时间
	private Date invaliddate;		// 失效时间
	
	public TRentprodModify() {
		super();
	}

	public TRentprodModify(String id){
		super(id);
	}

	public Integer getRentchgid() {
		return rentchgid;
	}

	public void setRentchgid(Integer rentchgid) {
		this.rentchgid = rentchgid;
	}
	
	@NotNull(message="套餐价格（零售往返价）不能为空")
	public Double getSuitrtnprice() {
		return suitrtnprice;
	}

	public void setSuitrtnprice(Double suitrtnprice) {
		this.suitrtnprice = suitrtnprice;
	}
	
	public Double getSuitonewayprice() {
		return suitonewayprice;
	}

	public void setSuitonewayprice(Double suitonewayprice) {
		this.suitonewayprice = suitonewayprice;
	}
	
	public Double getSuitfreeprice() {
		return suitfreeprice;
	}

	public void setSuitfreeprice(Double suitfreeprice) {
		this.suitfreeprice = suitfreeprice;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="生效时间不能为空")
	public Date getEfftdate() {
		return efftdate;
	}

	public void setEfftdate(Date efftdate) {
		this.efftdate = efftdate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="失效时间不能为空")
	public Date getInvaliddate() {
		return invaliddate;
	}

	public void setInvaliddate(Date invaliddate) {
		this.invaliddate = invaliddate;
	}

	public Integer getForsaleid() {
		return forsaleid;
	}

	public void setForsaleid(Integer forsaleid) {
		this.forsaleid = forsaleid;
	}

	public TCargotypeForsale getCargosale() {
		return cargosale;
	}

	public void setCargosale(TCargotypeForsale cargosale) {
		this.cargosale = cargosale;
	}
	
}